{extend name="index_layout"/}
{block name="main"}
<form class="layui-form" method="post">

    <div class="layui-form-item">
        <label class="layui-form-label">用户ID</label>
        <div class="layui-input-block">
            <input id="c-member_id" lay-verify="" data-source="admin/member/index" class="selectpage layui-input" name="row[member_id]" type="text" value="{$data.member_id}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">被推荐人的ID</label>
        <div class="layui-input-block">
            <input id="c-retail_member_id" lay-verify="" data-source="admin/retail.member/index" class="selectpage layui-input" name="row[retail_member_id]" type="text" value="{$data.retail_member_id}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">订单ID</label>
        <div class="layui-input-block">
            <input id="c-order_id" lay-verify="" data-source="admin/order/index" class="selectpage layui-input" name="row[order_id]" type="text" value="{$data.order_id}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">收入</label>
        <div class="layui-input-block">
            <input id="c-income" lay-verify="required" class=" layui-input" step="0.01" name="row[income]" type="number" value="{$data.income}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">1:财税顾问。2:团队分销</label>
        <div class="layui-input-block">
            <input id="c-type" lay-verify="required" class=" layui-input" name="row[type]" type="number" value="{$data.type}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">类型：1间接推荐 2直接推荐</label>
        <div class="layui-input-block">
            <input id="c-retail_type" class=" layui-input" name="row[retail_type]" type="text" value="{$data.retail_type}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">该用户之前的收入</label>
        <div class="layui-input-block">
            <input id="c-before_amount" lay-verify="required" class=" layui-input" step="0.01" name="row[before_amount]" type="number" value="{$data.before_amount}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">该用户之后的金额</label>
        <div class="layui-input-block">
            <input id="c-after_amount" lay-verify="required" class=" layui-input" step="0.01" name="row[after_amount]" type="number" value="{$data.after_amount}">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">类型 收入类型 </label>
        <div class="layui-input-block">
            <input id="c-income_type" lay-verify="required" class=" layui-input" name="row[income_type]" type="text" value="{$data.income_type}">
        </div>
    </div>
    <div class="layui-form-item layer-footer">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
{/block}
{block name="script"}
<script type="text/javascript">
layui.use('yznForm', function() {
    var yznForm = layui.yznForm;
    yznForm.bindevent($("form.layui-form"));
});
</script>
{/block}